﻿@using Ext.Net
@using Ext.Net.MVC
@model DoAnForum.Models.ForgotPassword
@{
    ViewBag.Title = "ForgotPassword";
}
<div style="width: 500px;">
    @Html.X().ResourceManager().Theme(Theme.Default)
    @Html.X().FormPanel().ID("ForgotPasswordPanel").Border(false).Listeners(ls => ls.ValidityChange.Handler = "App.btnSubmit.setDisabled(!valid)").Items(
        Html.X().Label().Text("Lấy lại mật khẩu").StyleSpec("color:green; font-weight:bold; font-size:18").Margin(30),
        Html.X().TextFieldFor(m=>m.UserName).Margin(30).Width(350),
        Html.X().TextFieldFor(m=>m.Email).Margin(30).Width(350),
        Html.X().Button().Text("Đồng ý").ID("btnSubmit").Margin(10).Disabled(true).StyleSpec("Float: right").DirectEvents(de=>
                                                                    {
                                                                        de.Click.Url = Url.Action("ForgotPassword");
                                                                        de.Click.EventMask.ShowMask = true;
                                                                        de.Click.FormID = "ForgotPasswordPanel";
                                                                    })
    )
</div>